module.exports = {
  apps: [{
    name: 'frontend',
    script: './node_modules/next/dist/bin/next',
    args: 'start',
    env: {
      PORT: 3000,
      NODE_ENV: 'production',
      NEXT_PUBLIC_API_URL: '/api'
    },
    cwd: '/home/frontend',
    env_production: {
      PORT: 3000,
      NODE_ENV: 'production',
      NEXT_PUBLIC_API_URL: '/api'
    },
    env_development: {
      PORT: 3000,
      NODE_ENV: 'development',
      NEXT_PUBLIC_API_URL: 'http://localhost:8080'
    }
  }]
}; 